package com.ruoyi.qsng.service;

import com.ruoyi.common.core.domain.AjaxResults;
import com.ruoyi.qsng.domain.KCoursePurchase;
import com.ruoyi.qsng.domain.KUsers;

import java.util.List;

/**
 * 课程购买Service接口
 *
 * @author kanglou
 * @date 2023-06-07
 */
public interface IKCoursePurchaseService {
    /**
     * 查询课程购买
     *
     * @param id 课程购买主键
     * @return 课程购买
     */
    public KCoursePurchase selectKCoursePurchaseById(String id);

    /**
     * 查询课程购买列表
     *
     * @param kCoursePurchase 课程购买
     * @return 课程购买集合
     */
    public List<KCoursePurchase> selectKCoursePurchaseList(KCoursePurchase kCoursePurchase);

    /**
     * 查询课程购买列表
     *
     * @param kCoursePurchase 课程购买
     * @return 课程购买集合
     */
    public List<KCoursePurchase> selectKCoursePurchaseDataList(KCoursePurchase kCoursePurchase);

    /**
     * 查询课程购买列表
     *
     * @param kCoursePurchase 课程购买
     * @return 课程购买集合
     */
    public List<KCoursePurchase> selectKCoursePurchaseListForApp(KCoursePurchase kCoursePurchase);

    /**
     * 新增课程购买
     *
     * @param kCoursePurchase 课程购买
     * @return 结果
     */
    public int insertKCoursePurchase(KCoursePurchase kCoursePurchase);

    /**
     * 新增课程购买
     *
     * @param kCoursePurchase 课程购买
     * @return 结果
     */
    public AjaxResults insertKCoursePurchaseForApp(KCoursePurchase kCoursePurchase, KUsers kUsers);

    /**
     * 新增课程购买
     *
     * @param kCoursePurchase 课程购买
     * @return 结果
     */
    public AjaxResults insertKCoursePurchaseForApp(KCoursePurchase kCoursePurchase);

    /**
     * 修改课程购买
     *
     * @param kCoursePurchase 课程购买
     * @return 结果
     */
    public int updateKCoursePurchase(KCoursePurchase kCoursePurchase);

    /**
     * 批量删除课程购买
     *
     * @param ids 需要删除的课程购买主键集合
     * @return 结果
     */
    public int deleteKCoursePurchaseByIds(String[] ids);

    /**
     * 删除课程购买信息
     *
     * @param id 课程购买主键
     * @return 结果
     */
    public int deleteKCoursePurchaseById(String id);
}
